//
//  MYUser.swift
//  MYSinaWeico
//
//  Created by Magic Yu on 16/4/12.
//  Copyright © 2016年 Magic Yu. All rights reserved.
//

import UIKit

class MYUser: NSObject {

 /// 用户名称
    var name: String?
 /// 用户头像
    var profile_image_url: String?
 /// 用户等级  0~6级
    var mbrank: Int = 0
 /// 认证类型 -1 没有认证 1 认证用户  2 3 5  企业认证  220 达人
    var verified = -1
    
    init(dict: [String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    //过滤
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {  }
    
    //MARK:将对象转换为字符串
    override var description: String {
    
        let keys = ["name","profile_image_url"]
        let dict = self.dictionaryWithValuesForKeys(keys)
        return dict.description
    }
    
}



